package com.campusnews.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.campusnews.annotation.IgnoreSwaggerParameter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author lqc
 * @since 2021-10-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SecondComment对象", description="")
public class SecondComment implements Serializable {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "二级评论自增id")
    @TableId(value = "second_id", type = IdType.AUTO)
    private Integer secondId;

    @ApiModelProperty(value = "二级评论内容")
    private String comContent;

    @ApiModelProperty(value = "评论者用户id")
    private Integer userId;

    @ApiModelProperty(value = "评论点赞数")
    private Integer agreeNum;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private SchoolUser user;

    @ApiModelProperty(value = "是否为本用户标识")
    @TableField(exist = false)
    private Boolean userStatue = false;

    @ApiModelProperty(value = "本用户是否点赞标识")
    @TableField(exist = false)
    private Boolean userAgreeStatue = false;

    @ApiModelProperty(value = "被评论者用户id")
    private Integer comUserId;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private SchoolUser comUser;

    @ApiModelProperty(value = "帖子id")
    private Integer inviId;

    @ApiModelProperty(value = "一级评论id")
    private Integer firstId;

    @ApiModelProperty(value = "二级评论的id")
    private Integer comSecondId;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private List<SecondComment> secondComments;

    @ApiModelProperty(value = "乐观锁")
    @IgnoreSwaggerParameter
    @Version
    private Integer version;

    @ApiModelProperty(value = "逻辑删除")
    @IgnoreSwaggerParameter
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @IgnoreSwaggerParameter
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @IgnoreSwaggerParameter
    private Date updateTime;


}
